package cn.aicnn.chatssespringboot.service;

import cn.aicnn.chatssespringboot.dto.Account;
import cn.aicnn.chatssespringboot.dto.User;

import java.util.Map;

public interface AccountService {
    boolean register(Account account);
    Account getUserInfo(String username);
    boolean updateUserInfo(String username, Account newInfo);
    String getSecurityQuestion(String username);
    boolean verifyAnswer(String username, String answer);
    boolean updatePassword(String username, String password, String answer);
    boolean isAdmin(String username);
    boolean checkUserExist(String username);
    boolean checkUserExists(String username);
    int updateAddressByUsername(String username, String address);
    boolean setAdmin(String username, int adminValue);


//    Map<String, Object> updateUserInfo(String username, String newUsername, String password, String phone, String address, String firstname, String lastname, String question, String answer);

}
